package wxk.interview.aop.core.jdk.handler;

import java.lang.reflect.Method;

/**
 * @author wangxuekai
 * @version 1.0
 * @date 2017/3/5.
 */
public abstract class AfterHandler extends AbstractHandler {

    public abstract void  after(Object proxy,Method method,Object[] args);

    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
       Object result = method.invoke(getTarget(),args);
       print("执行方法之后-------");
        return result;
    }
}
